package com.lili.collection.core.domain;

import com.lili.collection.core.fields.Field;
import com.lili.collection.core.runner.result.RecordInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 *描述: json
 *@date: 2023/10/13  11:05
 *@author: lili
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class FetchDataInfo implements Serializable {

    /**
     * 接口输入配置
     */
    private CollectCommonConfig modeConfig;

    /**
     * 数据接收信息
     */
    private RecordInfo recordInfo;

    /**
     * 目标数据List
     */
    private List<Map<String, Field>> dataList = new ArrayList<>();

    public FetchDataInfo(CollectCommonConfig modeConfig, RecordInfo recordInfo) {
        this.modeConfig = modeConfig;
        this.recordInfo = recordInfo;
    }
}